package treeedit;

import java.awt.Color;
import java.awt.Component;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import javax.imageio.stream.FileImageOutputStream;
import javax.imageio.stream.ImageOutputStream;
import javax.swing.Icon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane.IconifyAction;
import javax.swing.tree.DefaultTreeCellRenderer;

public class CodeRenderer extends DefaultTreeCellRenderer 
{

	@Override
	public Component getTreeCellRendererComponent(JTree arg0, Object node, boolean arg2, boolean arg3, boolean arg4, int arg5, boolean arg6) {
		
		JLabel l = (JLabel)super.getTreeCellRendererComponent(arg0, node, arg2, arg3, arg4, arg5,
				arg6);
		
	/*	CodeNode n = (CodeNode) node;
		l.setText(n.getRepresentation());
		if(n.isFunction())
		{
			l.setForeground(Color.RED);
		}*/
			
		return l;
	}

	
	
}
